package com.Service.impl;

import com.Service.MedicalCardService;
import com.dao.MedicalCardMapper;
import com.model.pojo.Buildcard;
import com.model.pojo.MedicalCard;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MedicalCardServiceImpl implements MedicalCardService {
    @Resource
    private MedicalCardMapper medicalCardMapper;

    @Override
    public Integer set(String cardnum) {
        return medicalCardMapper.setcard(cardnum);
    }

    @Override
    public List selectall(MedicalCard medicalCard) {
        return medicalCardMapper.selectallcard(medicalCard);
    }

    @Override
    public List getcardnum() {
        return medicalCardMapper.getnum();
    }

    @Override
    public Integer reset(MedicalCard medicalCard) {
        return medicalCardMapper.resetone(medicalCard);
    }
}
